package com.neudu.yyzx_service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neudu.yyzx_service.mapper.BedMapper;
import com.neudu.yyzx_service.pojo.Bed;
import com.neudu.yyzx_service.service.BedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BedServiceImpl extends ServiceImpl<BedMapper, Bed> implements BedService {
    @Autowired
    private BedMapper bedMapper;

    @Override
    public Bed getBedById(Long id) {
        return bedMapper.getBedById(id);
    }


    @Override
    public List<Bed> get_all_building() {
        return bedMapper.get_all_building();
    }

    @Override
    public List<Bed> get_all_room() {
        return bedMapper.get_all_room();
    }

    @Override
    public List<Bed> get_all_bed() {
        return bedMapper.get_all_bed();
    }

    @Override
    public List<Bed> getbed_by_buildingroom(Integer buildingNo, Integer roomNo) {
        return bedMapper.getbed_by_buildingroom(buildingNo,roomNo);
    }

    @Override
    public List<Bed> getroom_by_building(Integer buildingNo) {
        return bedMapper.getroom_by_building(buildingNo);
    }
}